﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="bz_jihuaxinzeng.aspx.cs" Inherits="Default3" Title="新增计划单" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style7
        {
            font-size: small;
            text-align: left;
        }
        .style6
        {
            color: #000000;
        }
        .style1
        {
            font-size: small;
        }
        .style8
        {
            color: #000000;
            font-size: small;
        }
        .style9
        {
            color: #FF3300;
            font-size: medium;
        }
        .style21
        {
            font-size: small;
        }
        #table1
        {
            width: 200px;
        }
        .style24
        {
            width: 282px;
            height: 220px;
            border-style: solid;
            border-width: 1px;
        }
            
        .style11
        {
            font-size: small;
            text-align: left;
        }
        </style>
</head>
<body background="images/login-bg.jpg">
    <form id="form1" runat="server">
    <div style="text-align: center">
    
    <div class="style7">
    
        <span class="style7">当前位置：</span><asp:HyperLink ID="HyperLink1" runat="server" 
            CssClass="style7" NavigateUrl="~/index.aspx" style="color: #000000" 
            ToolTip="点击返回主页面">主页面</asp:HyperLink>
        <span class="style7">→ 新增计划单</span><br class="style7" />
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="xuhao" DataSourceID="SqlDataSource1" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            Visible="False">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="xuhao" HeaderText="xuhao" ReadOnly="True" 
                    SortExpression="xuhao" />
                <asp:BoundField DataField="chehao" HeaderText="chehao" 
                    SortExpression="chehao" />
                <asp:BoundField DataField="banzu" HeaderText="banzu" SortExpression="banzu" />
                <asp:BoundField DataField="chejian" HeaderText="chejian" 
                    SortExpression="chejian" />
                <asp:BoundField DataField="banzu1" HeaderText="banzu1" 
                    SortExpression="banzu1" />
                <asp:BoundField DataField="chejian1" HeaderText="chejian1" 
                    SortExpression="chejian1" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:GridView ID="GridView2qiche" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="xuhao" DataSourceID="SqlDataSource2qiche" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            Visible="False">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="xuhao" HeaderText="xuhao" ReadOnly="True" 
                    SortExpression="xuhao" />
                <asp:BoundField DataField="chehao" HeaderText="chehao" 
                    SortExpression="chehao" />
                <asp:BoundField DataField="banzu" HeaderText="banzu" SortExpression="banzu" />
                <asp:BoundField DataField="chejian" HeaderText="chejian" 
                    SortExpression="chejian" />
                <asp:BoundField DataField="banzu1" HeaderText="banzu1" 
                    SortExpression="banzu1" />
                <asp:BoundField DataField="chejian1" HeaderText="chejian1" 
                    SortExpression="chejian1" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:GridView ID="GridView3fadianji" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="xuhao" DataSourceID="SqlDataSource3fadianji" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            Visible="False">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="xuhao" HeaderText="xuhao" ReadOnly="True" 
                    SortExpression="xuhao" />
                <asp:BoundField DataField="chehao" HeaderText="chehao" 
                    SortExpression="chehao" />
                <asp:BoundField DataField="banzu" HeaderText="banzu" SortExpression="banzu" />
                <asp:BoundField DataField="chejian" HeaderText="chejian" 
                    SortExpression="chejian" />
                <asp:BoundField DataField="banzu1" HeaderText="banzu1" 
                    SortExpression="banzu1" />
                <asp:BoundField DataField="chejian1" HeaderText="chejian1" 
                    SortExpression="chejian1" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource3fadianji" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT * FROM [tcjcb_fadianji] WHERE ([banzu1] = @banzu1)">
            <SelectParameters>
                <asp:SessionParameter Name="banzu1" SessionField="pn" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2qiche" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT * FROM [tcjcb_qiche] WHERE ([banzu1] = @banzu1)">
            <SelectParameters>
                <asp:SessionParameter Name="banzu1" SessionField="pn" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT * FROM [tcjcb] WHERE ([banzu1] = @banzu1)">
            <SelectParameters>
                <asp:SessionParameter Name="banzu1" SessionField="pn" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        <asp:GridView ID="GridView3ranyou" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource3ranyou" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            Visible="False">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="danjia" HeaderText="danjia" 
                    SortExpression="danjia" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource3ranyou" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT [danjia] FROM [ranyou] WHERE (([lei] = @lei) AND ([mingcheng] = @mingcheng))">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownList_lei" Name="lei" 
                    PropertyName="SelectedValue" Type="String" />
                <asp:ControlParameter ControlID="DropDownList_mingcheng" Name="mingcheng" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br /></div>
        <span class="style9">&nbsp;</span><span class="style1"><table align="center" 
            border="1" cellpadding="0" cellspacing="0" class="style24">
            <tr>
                <td>
                    <span class="style1"><span class="style8">
        年：</span></span></td>
                <td>
                    <span class="style1">
                    <asp:Label ID="Label_nian" runat="server"></asp:Label>
                    </span>
                </td>
            </tr>
            <tr>
                <td>
        <span class="style1"><span class="style6">月：</span></span></td>
                <td>
        <span class="style1"><span class="style6">
                    <asp:Label ID="Label_yue" runat="server"></asp:Label>
                    </span></span>
                </td>
            </tr>
            <tr>
                <td>
        <span class="style1">类别:</span></td>
                <td>
        <span class="style1">
                    <asp:DropDownList ID="DropDownList_lei" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="DropDownList_lei_SelectedIndexChanged">
                                      <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                    </span>
                </td>
            </tr>
            <tr>
                <td>
                    车号：</td>
                <td>
                    <asp:DropDownList ID="DropDownList_chehao" runat="server" 
                                    AppendDataBoundItems="True" CssClass="style11" 
                                    DataSourceID="SqlDataSource_chehao" DataTextField="chehao" 
                                    DataValueField="chehao" Height="16px">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource_chehao" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>">
        </asp:SqlDataSource>
    
                </td>
            </tr>
            <tr>
                <td>
                    燃油种类:</td>
                <td>
                    <asp:DropDownList 
            ID="DropDownList_mingcheng" runat="server" CssClass="style1" 
                        AppendDataBoundItems="True" AutoPostBack="True" 
                        DataSourceID="SqlDataSource_mingcheng" DataTextField="mingcheng" 
                        DataValueField="mingcheng" 
                        onselectedindexchanged="DropDownList_mingcheng_SelectedIndexChanged">
                        <asp:ListItem>请选择</asp:ListItem>
        </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource_mingcheng" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
                        SelectCommand="SELECT [mingcheng], [danjia] FROM [ranyou] WHERE ([lei] = @lei) ORDER BY [px]">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="DropDownList_lei" Name="lei" 
                                PropertyName="SelectedValue" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td>
                    单价:</td>
                <td>
                    <span class="style1"><span class="style6">
                    <asp:Label ID="Label_danjia" runat="server">/</asp:Label>
                    </span></span>
                </td>
            </tr>
            <tr>
                <td>
                    燃油数量(升)</td>
                <td>
                    <asp:TextBox ID="TextBox_banzushuliang" runat="server" Width="40px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="style1"><span class="style6">
                    <asp:Label ID="Label_gonglibiao" runat="server">本次公里表底数</asp:Label>
                    </span></span>
                </td>
                <td>
                    <span class="style1">
                    <asp:TextBox ID="TextBox_gonglibiao" runat="server" Width="40px"></asp:TextBox>
                    </span>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="style1"><span class="style6">
                    <asp:Label ID="Label_yunxing" runat="server">运行公里数</asp:Label>
                    </span></span>
                </td>
                <td>
                    <span class="style1">
                    <asp:TextBox ID="TextBox_yunxing" runat="server" Width="40px"></asp:TextBox>
                    </span>
                </td>
            </tr>
        </table>
        <span class="style8">
        <br />
        </span>
        <br />
        <span class="style6">
        <asp:Button ID="Button1" runat="server" CssClass="style1" 
            onclick="Button1_Click" Text="提报" 
            onclientclick="return confirm('计划单提报后将无法修改，确认继续吗？')" />
        &nbsp;
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
            PostBackUrl="~/bz_jihuaxinzeng.aspx" Text="继续填报新计划" Visible="False" />
&nbsp;
        <asp:Button ID="Button3" runat="server" PostBackUrl="~/index.aspx" Text="返回主页面" 
            Visible="False" />
        <br />
        </span></span>
        <span class="style1">&nbsp;
        &nbsp; </span>
        <span class="style1">&nbsp;&nbsp;</span><br class="style1" />
        <br />
        <br />
        <span class="style1">提报人：</span><asp:Label ID="Label1" runat="server" 
            CssClass="style1" Text="Label"></asp:Label>
        <span class="style1">&nbsp; </span>
        <asp:Label ID="Label2" runat="server" CssClass="style1" Text="Label"></asp:Label>
        <span class="style1">&nbsp; </span>
        <asp:Label ID="Label3" runat="server" CssClass="style1" Text="Label"></asp:Label>
    
    </div>
    </form>
    <p class="style21" style="TEXT-ALIGN: center">
        &nbsp;</p>
    <p class="style21" style="TEXT-ALIGN: center">
        &nbsp;<br />
        &nbsp;安康供电段信息中心制作 2012</p>
</body>
</html>
